package com.springcloud.sc.ucp.v5.api.feign;

import com.springcloud.sc.comm.core.constant.ServiceNameConstants;
import com.springcloud.sc.ucp.v5.api.vo.RoleVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(contextId = "ucpRemoteRoleService", value = ServiceNameConstants.UCP_SERVICE_V5)
public interface UcpRemoteRoleService {

    @RequestMapping(value = "/role/saveRoleAPI" , method = RequestMethod.POST)
    Boolean saveRoleAPI(@RequestBody RoleVo roleVo);


    @RequestMapping(value = "/role/updateRoleAPI" , method = RequestMethod.POST)
    Boolean updateRoleAPI(@RequestParam("name") String name, @RequestParam("id") String id);

    @RequestMapping(value = "/role/deleteRoleAPI" , method = RequestMethod.POST)
    Boolean deleteRoleAPI(@RequestParam("id") String id);

}
